class StockBlack:
    __stockname_black = ['ST', 'B', '退市']
    __stockcode_black = ['30', '68', '80', '83']

    @classmethod
    def get_name_black(cls):
        return cls.__stockname_black

    @classmethod
    def get_code_black(cls):
        return cls.__stockcode_black

    @staticmethod
    def checkInBlackList(stock_code, stock_name):
        for code in StockBlack.get_code_black():
            if stock_code.startswith(code):
                return True
        for name in StockBlack.get_name_black():
            if name in stock_name:
                return True
        return False
